﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EToplistType extends Object
    {
        public var __value:int;
        public static const _EToplistTypePlayerOverview:int = 0;
        public static const _EToplistTypePlayerCombat:int = 1;
        public static const _EToplistTypePlayerLevel:int = 2;
        public static const _EToplistTypePlayerSpriteCombat:int = 3;
        public static const _EToplistTypeEquipWeapon:int = 4;
        public static const _EToplistTypeEquipArmor:int = 5;
        public static const _EToplistTypeEquipJewelry:int = 6;
        public static const _EToplistTypePetCombat:int = 7;
        public static const _EToplistTypePetAptitude:int = 8;
        public static const _EToplistTypePetGrowth:int = 9;
        public static const _EToplistTypeBeast:int = 10;
        public static const _EToplistTypeMountCombat:int = 11;
        public static const _EToplistTypeMountRank:int = 13;
        public static const _EToplistTypeMountCard:int = 14;
        public static const _EToplistTypeGuildLevel:int = 15;
        public static const _EToplistTypeGuildCombat:int = 16;
        public static const _EToplistTypeFashion:int = 17;
        public static const _EToplistTypeWing:int = 18;
        public static const _EToplistTypeWeapon:int = 19;
        public static const _EToplistTypeFightSoul:int = 20;
        public static const _EToplistTypeFightMethod:int = 21;
        public static const _EToplistTypeFightDragonSoul:int = 22;
        public static const _EToplistTypeCareerCombat:int = 23;
        public static const _EToplistTypeGuildLeader:int = 24;
        public static const _EToplistTypeFightHolyBook:int = 25;
        public static const _EToplistTypeFightWarShield:int = 26;
        public static const _EToplistTypeFightBeastSoul:int = 27;
        public static const _EToplistTypePlayerRechange:int = 28;
        public static const _EToplistTypeCopyDefence20:int = 501;
        public static const _EToplistTypeCopyDefence40:int = 502;
        public static const _EToplistTypeCopyDefence60:int = 503;
        public static const _EToplistTypeCopyTower:int = 511;
        public static const _EToplistTypeCopyChallenge:int = 512;
        public static const _EToplistTypeTower:int = 900;
        public static const _EToplistTypeCrossBase:int = 1000;

        public function EToplistType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeShort(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EToplistType
        {
            return new EToplistType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EToplistType
        {
            var _loc_2:* = param1.readShort();
            if (_loc_2 < 0 || _loc_2 >= 1001)
            {
                throw new MarshalException();
            }
            return EToplistType.convert(_loc_2);
        }// end function

    }
}
